import { users } from './../../types/user';
import { courses } from './../../types/courses';
import { BaseRequest, BaseResponse, BaseConf } from "../base";
import { ObjectId } from 'mongodb';
/**
 * @description: 搜索课程
 */
export interface ReqSearchCourses extends BaseRequest {
    name: string,
    
}

export interface ResSearchCourses extends BaseResponse {
    courses: Array<{
        _id: ObjectId
        name: string
        teacher: users
        // teacher: {
        //     _id: ObjectId | undefined,
        //     name: string
        // }
        school: string
        cover: string
        introduction: string
    }>
}

export const conf: BaseConf = {
    needLogin: true,
}